#pragma once

#include <atlctrls.h>
#include <atlmisc.h>

#include <string>

#include <atlscrl.h>
#include <atlframe.h>
#include <atlwince.h>

#include "RichInkPersist.h"

typedef std::pair<int, int> IntTuple; 

class MemoEdit 
    : public CWindowImpl< MemoEdit, CRichInkCtrl >
    , public RichInkPersist< MemoEdit >
{
    typedef CWindowImpl<MemoEdit, CRichInkCtrl> _thisClass;

public:
    DECLARE_WND_SUPERCLASS(NULL, CRichInkCtrl::GetWndClassName());

    MemoEdit()
    {}

    BOOL PreTranslateMessage(MSG*)
    {
        return FALSE;
    }

    IntTuple GetSelection();
    void SelectAll();

    BEGIN_MSG_MAP(_thisClass)
    END_MSG_MAP()

};